<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/12/30
  Time: 10:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>新增或编辑</title>
</head>
<body>
<style>
    #dataTable{width: 80%;height: 100%;margin: 20px;}
    #dataTable td{
        height: 30px;
        margin: 10px;
    }
</style>
<form id="dataForm">
    <table id="dataTable">
        <tr>
            <td width="100" align="right">
                菜单名称:&nbsp;
            </td>
            <td>
                <input type="hidden" name="id" value="${u.id}">
                <input class="easyui-textbox" name="menuName" value="${u.menuName}"/>
            </td>
        </tr>
        <tr>
            <td width="100" align="right">
                上级名称:&nbsp;
            </td>
            <td>
                <input type="hidden" id="pId" value="${u.parentId}"/>
                <select id="s1" class="easyui-combotree" name="parentId"
                    data-options="
                        url:'${ctx}/mc/find',
                        parentField:'parentId',
                        width:150,
                        onLoadSuccess:function(node,data){
                            $('#s1').combotree('setValue',$('#pId').val());
                        }
                    "
                ></select>
            </td>
        </tr>
        <tr>
            <td width="100" align="right">
                菜单类型:&nbsp;
            </td>
            <td>

                <input type="radio" name="menuType" value="menu" <c:if test="${u.menuType eq 'menu' or empty u.menuType}">checked</c:if>/>菜单
                <input type="radio" name="menuType" value="btn" <c:if test="${u.menuType eq 'btn'}">checked</c:if>/>按钮
            </td>
        </tr>
        <tr>
            <td width="100" align="right">
                url:&nbsp;
            </td>
            <td>
                <input class="easyui-textbox" name="src" value="${u.src}" />
            </td>
        </tr>
        <tr>
            <td width="100" align="right">
                icon:&nbsp;
            </td>
            <td>
                <input class="easyui-textbox" name="icon" value="${u.icon}" />
            </td>
        </tr>
        <tr>
            <td width="100px" align="right">
                状态:&nbsp;
            </td>
            <td>
                <select class="easyui-combobox" name="status" style="width:200px;height:30px;">
                    <option value="s">显示</option>
                    <option value="h">隐藏</option>
                </select>
            </td>
        </tr>
    </table>
</form>
</body>
</html>

